package com.dev;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.BlendMode;
public class IconViewBlendMode extends IconView {
    public IconViewBlendMode(MainActivity ma){
		super(ma);
	}
    @Override 
	public void onDraw(Canvas canvas){
		Paint p=new Paint();
		int vw=getWidth();
		int vh=getHeight();
		int cx=vw/2;
		int cy=vh/2;
		int circleRadius=vh*2/7;
		int offs=vh/5;
		//canvas.saveLayer(null,null);
		//p.setBlendMode(BlendMode.PLUS);
		p.setColor(0x7fff0000);
		canvas.drawCircle(cx,cy-offs,circleRadius,p);
		p.setColor(0x7f00ff00);
		canvas.drawCircle(cx+Math.round(offs*Math.sin(2*Math.PI/6)),cy+(offs/2),circleRadius,p);
		p.setColor(0x7f0000ff);
		canvas.drawCircle(cx-Math.round(offs*Math.sin(2*Math.PI/6)),cy+(offs/2),circleRadius,p);
	}
}
